/* Only design */

body {
  margin: 16px;
  color: #fff;
  font-size: 16px;
  font-family: system-ui, sans-serif;
  background-color: #00212f;
}

@media screen and (min-width: 1440px) {
  body {
    font-size: 18px;
  }
}

body.no-js {
  background-image: none;
}

h1,
h2,
h3,
h4,
p,
address,
nav,
li {
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
}

.nav--plans {
  border-top: 0.15rem ridge rgba(255, 255, 255, 0.2);
}

blockquote {
  font-style: oblique;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  font-size: larger;
}

h1 {
  font-size: 2rem;
}

h2 {
  padding: 0.3rem 0.6rem;
  font-size: 1.5rem;
}

h2,
h3,
h4,
h1.p-name {
  padding: 0.3rem 0.6rem;
  border-bottom: 0.2rem solid rgba(0, 0, 0, 0.2);
}

main > section > h2 {
  margin-top: 0;
}

.backgrounds-nighttime h2,
.backgrounds-nighttime h3,
.backgrounds-nighttime h4,
.backgrounds-nighttime h1.p-name {
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.2);
}

small,
.small {
  font-size: x-small;
}

.bigger {
  font-size: larger;
}

p {
  margin: 0.5rem;
  font-size: 1.2rem;
}

p.webmention-teaser {
  font-size: 0.85rem;
  font-style: oblique;
}

.e-content p {
  text-align: justify;
}

footer {
  padding: 1rem;
}

footer p {
  font-size: 0.85rem;
}

/* Branded Styling */
.logo--deloitte-digital {
  font-weight: 700;
  font-family: "Open Sans", Asap, sans-serif;
  letter-spacing: -1px;
  white-space: nowrap;
}

.contact {
  margin-top: 1rem;
  font-size: smaller;
  font-style: normal;
}

a,
button,
input {
  display: inline-block;
  padding: 0 5px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  background-color: rgba(125, 125, 125, 0.1);
  border-bottom: 1px solid rgba(60, 60, 60, 0.1);
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
  transition: background-color ease-in-out 0.5s;
}

button,
input {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(60, 60, 60, 0.1);
  cursor: pointer;
}

input[type="submit"] {
  background-color: rgba(0,0,0,0.5);
}

a:hover,
a:focus,
a:active,
button:hover,
input:hover,
button:focus,
input:focus {
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  text-shadow: none;
  background-color: rgba(200, 200, 200, 0.2);
}

/* Used in the webmentions facepile */
.link-u-exempt {
  padding: 0;
}

.badges a:link {
  padding: 0;
  background-color: inherit;
  border: none;
  box-shadow: none;
}

figure.avatar {
  border: 1px outset rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.35);
  opacity: 0.95;
  filter: sepia(5%) saturate(50%) brightness(110%);
}

.meta {
  font-size: smaller;
  font-family: consolas, monospace;
  font-style: oblique;
  opacity: 0.75;
}

h1.p-name + .meta {
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  margin-left: 1rem;
  text-align: center;
}

.meta__time {
  font-size: smaller;
  font-family: consolas, monospace;
}

.meta--plan {
  border-top: 1px outset rgba(0, 0, 0, 0.35);
}

.task:first-child {
  border-top: none;
}

#webmentions {
  flex: 1;
  flex-basis: 100%;
  font-size: 0.9rem;
}

input.hash,
.hash {
  color: snow;
  font-size: 1rem;
  font-family: monospace;
  background: none;
  border: none;
  cursor: default;
}

.link--download {
  cursor: pointer;
}

/* regular screens */
@media screen and (min-width: 800px) {
  timed-backgrounds {
    display: block;
  }

  time {
    font-family: Georgia, serif;
    font-feature-settings: "tnum", "lnum";
  }

  header,
  section,
  footer {
    background: linear-gradient(
      175deg,
      rgba(133, 81, 81, 0.1) 0%,
      rgba(0, 0, 0, 0.25) 35%,
      rgba(255, 255, 255, 0) 100%
    );
    border: none;
    transition: box-shadow 1s ease-in-out, backdrop-filter 1s ease-in-out;
  }

  .header-background-image {
    position: absolute;
    z-index: 0;
    background-image: url("https://cdn.masto.host/indiewebsocial/accounts/headers/000/119/252/original/33d3d5329976c774.jpg");
  }

  section:target,
  section:hover,
  section:focus,
  section:active,
  header:target,
  header:hover,
  header:focus,
  header:active,
  footer:hover,
  footer:focus,
  footer:active,
  footer:target {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(5px);
  }

  section:target,
  header:target,
  footer:target {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
  }

  .profile__details p {
    font-size: 1rem;
  }

  h1.page-title {
    overflow: hidden;
    font-size: 2.5rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* gives the box-shadow some room */
  h1.page-title a {
    margin-bottom: 2px;
  }
}

.page--cv {
  background-color: #206f8e;
}

.chip {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0.3rem;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.header--cv .portrait img {
  box-shadow: 0 0 10px rgb(0 0 0 / 50%);
}
